const db = wx.cloud.database()
const App = getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    list: [{
        pagePath: '/pages/teachers/home/index',
        iconPath: "../../images/icon/home.png",
        color: "text-gray",
        text: '首页',
      },
      {
        pagePath: '/pages/teachers/practice/index/index',
        iconPath: "../../images/icon/practice.png",
        color: "text-gray",
        text: '实践',
      },
      {
        pagePath: '/pages/teachers/smartService/index',
        iconPath: "../../images/icon/teaching-action.png",
        color: "text-blue",
        text: '服务',
      },
      {
        pagePath: '/pages/teachers/my/index',
        iconPath: "../../images/icon/my.png",
        color: "text-gray",
        text: '我的',

      }
    ],

    // 导航模块
    navList: [{

        text: "考勤管理",
        icon: "icon-kaoqin",
        pagePath: "/pages/course/list/index"
      }, {

        text: "日程管理",
        icon: "icon-richengguanli",
        pagePath: "/pages/course/list/index"

      }, {

        text: "资源库",
        icon: "icon-wenjianjia",
        pagePath: "/pages/folder/list/index"
      }, {

        text: "课程班级",
        icon: "icon-banjixinxi",
        pagePath: "/pages/myclass/list/index"
      },
      {

        text: "校外实践",
        icon: "icon-jidiguanli",
        pagePath: "/pages/practiceBase/list/index"
      }, {

        text: "讨论社区",
        icon: "icon-luntan",
        pagePath: "/pages/myclass/list/index"
      }, {

        text: "消息",
        icon: "icon-huiyiguanli- ",
        pagePath: "/pages/message/list/index"
      },
    ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {},

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    if (typeof this.getTabBar === 'function' &&
      this.getTabBar()) {
      this.getTabBar().setData({
        active: 1
      })
    }
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  },
  ceshi() {

  }
})